﻿using System;
using System.Xml;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DrivingGame
{
    class Setting
    {
        private XmlDocument xmlDoc;
        private XmlNode setting;

        public Setting()
        {
            xmlDoc = new XmlDocument();
            xmlDoc.Load("setting.xml");
            setting = xmlDoc.SelectSingleNode("Setting");
        }

        public string getPlayerName() 
        {
            return setting.SelectSingleNode("PlayerName").InnerText;
        }

        public string getSpeed()
        {
            return setting.SelectSingleNode("PlayerSpeed").InnerText;
        }

    }
}
